package com.jic.member.mapper;


import com.jic.common.base.vo.Page;
import com.jic.member.entity.MemDiscountCardEntity;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MemDiscountCardEntityMapper {
    void insert(MemDiscountCardEntity memDiscountCardEntity);

    void update(MemDiscountCardEntity memDiscountCardEntity);

    List<MemDiscountCardEntity> findOfPage(@Param("po") MemDiscountCardEntity memDiscountCardEntity, @Param("page") Page page);

    int countOfPage(@Param("po") MemDiscountCardEntity memDiscountCardEntity);

    long foreachInsert(List<MemDiscountCardEntity> list);

    MemDiscountCardEntity queryById(Long id);

    List<MemDiscountCardEntity> findAll(MemDiscountCardEntity memDiscountCardEntity);
    int updateByIdAndStatus(MemDiscountCardEntity updateParam);

    int untieByMemberIdAndThemeId(@Param("memberId") Long memberId, @Param("discountThemeId")Long discountThemeId);
}